/**
 * Created by user on 2017/11/20.
 */
var SingleChart = {};
SingleChart.LineChart = function(domId, options){
    var legend = {};
    var default_option = {
        tooltip: {
            trigger: 'axis',
        },
        legend: {
            bottom: 10,
            name:'test',
            data: ['排队量', '已接入会话量', '未接入会话量', '总会话量']
        },
        grid: {
            left: '3%',
            right: '4%',
            containLabel: true
        },
        xAxis: {
            type: 'category',
            boundaryGap: false,
            data: ['00:00', '01:00', '02:00', '03:00', '04:00', '05:00', '06:00','07:00','08:00',
                '09:00','10:00','11:00','12:00','13:00','14:00','15:00','16:00','17:00',
                '18:00','19:00','20:00','21:00','22:00','23:00']
        },
        yAxis: {
            type: 'value',
        },
        series: []
    };
    var option = $.extend({},default_option, options);
    var myChart = echarts.init(document.getElementById(domId));
    myChart.setOption(option);
    return myChart;
};
SingleChart.PieChart = function(){

};
SingleChart.BarChart = function(){

};